<?php
/**
 * Magento Enterprise Edition
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Magento Enterprise Edition End User License Agreement
 * that is bundled with this package in the file LICENSE_EE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.magento.com/license/enterprise-edition
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    design
 * @package     enterprise_default
 * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
 * @license http://www.magento.com/license/enterprise-edition
 */
/* @var $this Enterprise_Cms_Block_Hierarchy_Pagination */
?>
<div class="pager pager-only">
    <div class="pages">
        <strong><?php echo $this->__('Page:') ?></strong>
        <ol>
        <?php if ($this->canShowSequence()):?>
            <?php if ($this->canShowPrevious()):?>
            <li><a class="previous" href="<?php echo $this->getPreviousNode()->getUrl()?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Previous')) ?>" class="v-middle" /></a></li>
            <?php endif;?>
        <?php endif;?>

        <?php if ($this->canShowOuter() && $this->canShowFirst()):?>
            <li><a class="first" title="<?php echo $this->escapeHtml($this->getFirstNode()->getLabel())?>" href="<?php echo $this->getFirstNode()->getUrl()?>"><?php echo $this->getNodeLabel($this->getFirstNode())?></a></li>
        <?php endif;?>

        <?php if ($this->canShowPreviousJump()):?>
            <li><a class="previous_jump" title="<?php echo $this->escapeHtml($this->getPreviousJumpNode()->getLabel())?>" href="<?php echo $this->getPreviousJumpNode()->getUrl()?>">...</a></li>
        <?php endif;?>

        <?php foreach ($this->getNodesInRange() as $node):?>
            <?php if ($node->getIsCurrent()):?>
                <li class="current"><?php echo $this->getNodeLabel($node)?></li>
            <?php else: ?>
                <li><a title="<?php echo $this->escapeHtml($node->getLabel())?>" href="<?php echo $node->getUrl()?>"><?php echo $this->getNodeLabel($node)?></a></li>
            <?php endif; ?>
        <?php endforeach;?>

        <?php if ($this->canShowNextJump()):?>
            <li><a class="next_jump" title="<?php echo $this->escapeHtml($this->getNextJumpNode()->getLabel())?>" href="<?php echo $this->getNextJumpNode()->getUrl()?>">...</a></li>
        <?php endif;?>

        <?php if ($this->canShowOuter() && $this->canShowLast()):?>
          <li><a class="last" title="<?php echo $this->escapeHtml($this->getLastNode()->getLabel())?>" href="<?php echo $this->getLastNode()->getUrl()?>"><?php echo $this->getNodeLabel($this->getLastNode())?></a><li>
        <?php endif;?>

        <?php if ($this->canShowSequence()):?>
            <?php if ($this->canShowNext()):?>
            <li><a class="next" href="<?php echo $this->getNextNode()->getUrl()?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo Mage::helper('core')->quoteEscape($this->__('Next')) ?>" class="v-middle" /></a></li>
            <?php endif;?>
        <?php endif;?>
        </ol>
    </div>
</div>
